<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/29
 * Time: 13:49
 */

class mtable extends osa_model{

    public function __construct(){
        parent::__construct();
    }



    /**
     * 获取显示表数据 List
     */
    public function getTableIpList(){
        $sql = "select * from monitor_zabbix_hosts where status = 1";
        $rs = $this->db->queryFetchAllAssoc($sql);
       return $rs ;
    }

    /**
     * 获取显示表数据 Items
     */
    public function getTableItimeList($host_id){
        $sql = "select * from monitor_zabbix_items where status = 1 and host_id =".$host_id;
        $rs = $this->db->queryFetchAllAssoc($sql);
        return $rs ;
    }

    /**
     * 获取显示表数据 Items
     */
    public function getStableA1($host_id){
        $sql = "select * from monitor_zabbix_items where status = 1 and host_id =".$host_id;
        $rs = $this->db->queryFetchAllAssoc($sql);
        return $rs ;
    }
}